package com.ypf.demo_ssm.service;

import com.ypf.demo_ssm.dto.request.UserDTO;
import com.ypf.demo_ssm.dto.response.UserOrdersVO;
import com.ypf.demo_ssm.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.OutputStream;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 殷鹏飞
 * @since 2024-06-15
 */
public interface UserService extends IService<User> {

    List<User> queryList(String username, String account);

    boolean addOrUpdate(User user);

    boolean accountExists(String account);

    void importExcel(MultipartFile file) throws IOException;

    void exportExcel(OutputStream outputStream);

    List<UserOrdersVO> selectUserAndOrders(UserDTO userDTO);



}
